package net.maku.project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 流程阶段表
 *
 * @author 艾力 1106997025@qq.com
 * @since 1.0.0 2024-07-09
 */

@Data
@TableName(value = "process_stages",autoResultMap = true)
public class ProcessStagesEntity {
	/**
	* 阶段ID，主键，自增
	*/
	@TableId
	private Long id;

	/**
	* 流程阶段名称
	*/
	private String name;

	/**
	* 项目ID
	*/
	private Long projectId;

	/**
	* 阶段开始时间
	*/
	private LocalDateTime startTime;

	/**
	* 阶段结束时间
	*/
	private LocalDateTime endTime;

	private Boolean start;

	private Boolean finish;

	@TableField(value = "finish_node",typeHandler = JacksonTypeHandler.class)
	private List<Long> finishNode;

	private Long configStageId;

}